const http = uni.$u.http

//查询地址
export const getAddress = (data, config = { }) => 
	http.get('/user/address/addressList', Object.assign({ }, config, 
		{
			params: data,
		}))
		
//查询默认地址
export const getAddressDefault = (data, config = { }) => 
	http.get('/user/address/addressIsDefault', Object.assign({ }, config, 
		{
			params: data,
		}))

//行政区域,省
export const getReProvinces = (data, config = { }) => 
	http.get('/user/address/provinces', Object.assign({ }, config, 
		{
			params: data,
		}))
//行政区域，市
export const getReCities = (data, config = { }) => 
	http.get('/user/address/cities', Object.assign({ }, config, 
		{
			params: data,
		}))
//行政区域，区
export const getReDistricts = (data, config = { }) => 
	http.get('/user/address/districts', Object.assign({ }, config, 
		{
			params: data,
		}))
		
//新增地址
export const getAddressInsert = (data, config = { }) => 
	http.get('/user/address/addressInsert', Object.assign({ }, config, 
		{
			params: data,
		}))

//修改地址
export const getAddressUpdate = (data, config = { }) => 
	http.get('/user/address/addressUpdate', Object.assign({ }, config, 
		{
			params: data,
		}))
		
// 删除地址
export const delAddress = (data, config = { }) => 
	http.get('/user/address/delAddress', Object.assign({ }, config, 
		{
			params: data,
		}))
